package router

import (
	"github.com/gin-gonic/gin"
	"guns-go/controller/v1"
)

func InitSysOrgRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	OrgRouter := Router.Group("sysOrg")
	{
		OrgRouter.GET("tree", v1.TreeOrg)
		OrgRouter.GET("list", v1.SysOrgList)
		OrgRouter.GET("page", v1.OrgPage)
		OrgRouter.POST("add", v1.OrgAdd)
		OrgRouter.POST("edit", v1.OrgEdit)
		OrgRouter.POST("delete", v1.OrgDelete)
	}
	return OrgRouter
}
